/**
 * 
 */
package nullby.omnia.model;

import java.util.Date;

import nullby.common.model.BaseModel;

import org.json.JSONObject;

import android.database.Cursor;
import android.os.Parcel;

/**
 * @author Sergey Bandysik
 * 
 */
public final class User extends BaseModel {
	private static final String TAG = User.class.getSimpleName();

	private String id;
	private String login;
	private String password;
	private String fio;
	private String programm_lang_code;
	private String programm_user_view;
	private Integer programm_bg_card;
	private Date last_date_sync;
	private String path_file_avatar;

	/**
	 * 
	 */
	public User() {
		// TODO Auto-generated constructor stub
	}

	/**
	 * @param json
	 */
	public User(String json) {
		super(json);
		// TODO Auto-generated constructor stub
	}

	/**
	 * @param json
	 */
	public User(JSONObject json) {
		super(json);
		// TODO Auto-generated constructor stub
	}

	/**
	 * @param in
	 */
	public User(Parcel in) {
		super(in);
		// TODO Auto-generated constructor stub
	}

	public String getId() {
		return id;
	}

	public User(Cursor rawQuery) {
		if (rawQuery.moveToFirst()) {
			do {
				id = rawQuery.getString(0);
			} while (rawQuery.moveToNext());
		}
	}

}
